const mysql = require("mysql");
const env = {
  host: "111.231.22.97",
  user: "wangs-web",
  password: "HsTjw82zF7f6fjWY",
  database: "wangs-web", //数据库名字
};

// var connection;

// connection = mysql.createConnection(env);
// connection.connect();

var pool = mysql.createPool(env);

// module.exports = {
//   connection,
// };

module.exports = pool;
